//
//  NetworkManager.h
//  OralRobot
//
//  Created by 王桂敏 on 16/3/25.
//  Copyright © 2016年 王桂敏. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkingHandle.h"

@interface NetworkManager : NSObject

@property (nonatomic,strong) NetworkingHandle *handle;

+ (id)manager;

- (void)postWithURL:(NSString *)URL
              param:(NSMutableDictionary *)param
           delegate:(id<NetworkingHandleDelegate>)delegate
          isEncrypt:(BOOL)isEncrypt
               type:(NetWorkingType)type;

//  单张图片的上传
- (void)postWithURL:(NSString *)URL
       imagePicName:(NSString *)imagePicName
         imageArray:(NSArray *)imageArray
              param:(NSMutableDictionary *)param
           delegate:(id<NetworkingHandleDelegate>)delegate
          isEncrypt:(BOOL)isEncrypt
               type:(NetWorkingType)type;
//  多张图片的上传
- (void)postWithURL:(NSString *)URL
       imagePicName:(NSString *)imagePicName
         image:(UIImage *)image
              param:(NSMutableDictionary *)param
           delegate:(id<NetworkingHandleDelegate>)delegate
          isEncrypt:(BOOL)isEncrypt
               type:(NetWorkingType)type;

/**
 *  测试时的网络请求：完整的URL
 */
- (void)postTestWithURL:(NSString *)URL
                  param:(NSMutableDictionary *)param
               delegate:(id<NetworkingHandleDelegate>)delegate
              isEncrypt:(BOOL)isEncrypt
                   type:(NetWorkingType)type;
@end
 
